package kr.hkit.powerjava.chapter07.submit;

class Date {

	private int year, month, day;

	public Date() { 
	}
	
	public Date(int year, int month, int day) {
		this.year = year;
		this.month = month;
		this.day = day;
	}

	public void setData(int year, int month, int day) {
		this.year = year;
		this.month = month;
		this.day = day;
	}

	public void print1() {
		System.out.println(year + "," + month + "," + day);
	}

	public void print2() {

		String engMon = null;
		switch (month) {
			case 1:
				engMon = "january";
				break;
			case 2:
				engMon = "February";
				break;
			case 3:
				engMon = "March";
				break;
			case 4:
				engMon = "April";
				break;
			case 5:
				engMon = "May";
				break;
			case 6:
				engMon = "Jun";
				break;
			case 7:
				engMon = "July";
				break;
			case 8:
				engMon = "Auguest";
				break;
			case 9:
				engMon = "September";
				break;
			case 10:
				engMon = "October";
				break;
			case 11:
				engMon = "November";
				break;
			case 12:
				engMon = "December";
				break;
		}
		System.out.println(engMon + "," + month + "," + year);
	}
}
